package com.ruoyi.match.mapper;

import java.util.List;
import com.ruoyi.match.domain.MatchAttachments;

/**
 * 附件Mapper接口
 * 
 * @author 星野漫游
 * @date 2024-06-02
 */
public interface MatchAttachmentsMapper 
{
    /**
     * 查询附件
     * 
     * @param attachmentId 附件主键
     * @return 附件
     */
    public MatchAttachments selectMatchAttachmentsByAttachmentId(Long attachmentId);

    /**
     * 查询附件列表
     * 
     * @param matchAttachments 附件
     * @return 附件集合
     */
    public List<MatchAttachments> selectMatchAttachmentsList(MatchAttachments matchAttachments);

    /**
     * 新增附件
     * 
     * @param matchAttachments 附件
     * @return 结果
     */
    public int insertMatchAttachments(MatchAttachments matchAttachments);

    /**
     * 修改附件
     * 
     * @param matchAttachments 附件
     * @return 结果
     */
    public int updateMatchAttachments(MatchAttachments matchAttachments);

    /**
     * 删除附件
     * 
     * @param attachmentId 附件主键
     * @return 结果
     */
    public int deleteMatchAttachmentsByAttachmentId(Long attachmentId);

    /**
     * 批量删除附件
     * 
     * @param attachmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMatchAttachmentsByAttachmentIds(String[] attachmentIds);

    List<MatchAttachments> getByWorkId(Long id);

    List<MatchAttachments> getByWorkName(String workName);
}
